Determines the number of font variations in a font.
OSStatus ATSUCountFontVariations (
ATSUFontID iFont,
ItemCount *oVariationCount);
iFont
A value of type ATSUFontID. Pass the ID of the font whose variations you want to count.
oVariationCount
A pointer to a count. On return, the number of font variations defined in the font. You cannot pass NULL for this parameter.
function result
A result code. The result code kATSUInvalidFontErr indicates that the ID does not correspond to any installed font. For a list of other ATSUI-specific result codes, see Result Codes.
DISCUSSION
The ATSUCountFontVariations function determines the number of font variations that are defined in a font.